﻿using System;
using System.IO;

namespace InsertLineNumbers
{
    class InsertLineNumbers
    {
        static void Main()
        {
            string file = "..\\..\\File.txt";
            string newFile = "..\\..\\Result.txt";
            string line;
            int count = 1;

            using (StreamWriter writer = new StreamWriter(newFile))
            {
                using (StreamReader reader = new StreamReader(file))
                {
                    while ((line = reader.ReadLine()) != null)
                    {
                        writer.WriteLine("{0} {1}", count++, line);
                    }
                }
            }
        }
    }
}
